package com.zqwzd.service.impl;

import java.util.List;
import java.util.Map;

import com.zqwzd.dao.IDiscountsDao;
import com.zqwzd.entity.Discounts;
import com.zqwzd.service.IDiscountsService;

public class DiscountsServiceImpl implements IDiscountsService {
	
	private IDiscountsDao discountsDao;

	public void addDiscounts(Discounts discounts) {
		discountsDao.addDiscounts(discounts);
	}

	public IDiscountsDao getDiscountsDao() {
		return discountsDao;
	}

	public void setDiscountsDao(IDiscountsDao discountsDao) {
		this.discountsDao = discountsDao;
	}

	public List<Discounts> queryListDiscounts(Map<String, Object> paramsM) {
		return discountsDao.queryListDiscounts(paramsM);
	}

	public Discounts queryDiscounts(Map<String, String> paramsM) {
		return discountsDao.queryDiscounts(paramsM);
	}

	public int queryCountByCondition(Map<String, Object> paramsM) {
		return discountsDao.queryCountByCondition(paramsM);
	}

	public void updateApproval(Discounts discounts) {
		discountsDao.updateApproval(discounts);
	}

	public void deleteDiscounts(Map<String, Object> paramsM) {
		discountsDao.deleteDiscounts(paramsM);
	}

}
